bitkeeper revision 1.329.1.1 (3f0d4057f1pusde9YiNnc29jyP2ESg)
authorsos22@labyrinth.cl.cam.ac.uk <sos22@labyrinth.cl.cam.ac.uk>
Thu, 10 Jul 2003 10:30:47 +0000 (10:30 +0000)
committersos22@labyrinth.cl.cam.ac.uk <sos22@labyrinth.cl.cam.ac.uk>
Thu, 10 Jul 2003 10:30:47 +0000 (10:30 +0000)
Make /proc/dom0/vhd readable only to root.

xenolinux-2.4.21-sparse/arch/xeno/drivers/block/xl_segment_proc.c

index 19b0543692e8b448a8cfba0bf6d2e86752f9b80c..d1b12e203d73a74ab9dba6584d2a2b1cf5c439b5 100644 (file)
@@ -310,7 +310,7 @@ static struct file_operations proc_vhd_operations = {
 
 int __init xlseg_proc_init(void)
 {
-    vhd = create_proc_entry("xeno/dom0/vhd", 0644, NULL);
+    vhd = create_proc_entry("xeno/dom0/vhd", 0600, NULL);
     if (vhd == NULL)
     {
         panic ("xlseg_init: unable to create vhd proc entry\n");